import request from "./request.js";

export function StationList(data){
    return request.post("/station/api/station/find/location",data)
}

export function MyStationList(data){
    return request.post("/station/api/station/my/list",data)
}

export function StationPageList(data){
    return request.post("/station/api/station/page",data)
}

export function StartCharging(data){
    return request.post("/station/charging/start",data)
}

export function ChargingRecordList(data){
    return request.post("/station/charging/record/list",data)
}

export function StopCharging(){
    return request.post("/station/charging/stop")
}

export function RandomAvailableGun(){
    return request.get("/station/api/station/random/available")
}

export function GetGunById(data){
    return request.get("/station/api/station/gun/"+data)
}
export function CurrentChargingRate(){
    return request.get("/station/charging/current/rate")
}